.class Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;
.super Landroid/os/AsyncTask;
.source "DealerDetailActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "downLoadTask"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/String;",
        "Ljava/lang/Void;",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;


# direct methods
.method constructor <init>(Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 139
    iput-object p1, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method


# virtual methods
.method protected bridge varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->doInBackground([Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected varargs doInBackground([Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter "params"

    .prologue
    .line 148
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;->downLoadData()V

    .line 149
    const-string v0, ""

    return-object v0
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->onPostExecute(Ljava/lang/String;)V

    return-void
.end method

.method protected onPostExecute(Ljava/lang/String;)V
    .locals 3
    .parameter "result"

    .prologue
    .line 154
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    invoke-static {v0}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;->access$0(Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;)Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 155
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "http://m.bitauto.com/appapi/Preferential/List.ashx?dealerid="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    invoke-static {v2}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;->access$0(Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;)Lcom/bitauto/autoeasy/selectcar/Object/Dealer;

    move-result-object v2

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/selectcar/Object/Dealer;->getVendorID()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "&cityid="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    invoke-virtual {v2}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;->getCityID()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;->access$1(Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;Ljava/lang/String;)V

    .line 156
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    invoke-virtual {v0}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;->refreshView()V

    .line 158
    :cond_0
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;->setTitleProgressBar(Z)V

    .line 159
    return-void
.end method

.method protected onPreExecute()V
    .locals 2

    .prologue
    .line 143
    iget-object v0, p0, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity$downLoadTask;->this$0:Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/selectcar/DealerDetailActivity;->setTitleProgressBar(Z)V

    .line 144
    return-void
.end method
